﻿@model Viettel.VOFFICE.Web.Models.DepartmentModel
@{if (Model.SubDepts.Any()){
    foreach (var item in Model.SubDepts)
    {
        <ul>
            @if (item != null)
            {
                <li><a href="javascript:void(0);" class="show-dept" data-id="@item.Id"><span title='@item.Description'>@item.Name</span></a>
                    @if (item.SubDepts.Any())
                    {
                        @Html.Partial("../Common/DeptTreeTemplate", item)
                    }
                </li>
            }
        </ul>
    }
}}